<!DOCTYPE html>
<html>
<head>
<title>流程规则表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("bpmnoderule:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("bpmnoderule:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("bpmnoderule:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">父键</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.pid" placeholder="父键"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">模板id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmModleId" placeholder="模板id"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">节点id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmModleNodeId" placeholder="节点id"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部署id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmDeploymentId" placeholder="部署id"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部署成功流程定义Id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmProcessDefinitionId" placeholder="部署成功流程定义Id"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">规则名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.ruleName" placeholder="规则名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">规则类型b:按钮，e:环境变量，p:选择参与者，s:执行脚本</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.ruleType" placeholder="规则类型b:按钮，e:环境变量，p:选择参与者，s:执行脚本"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">排序</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.ruleOrder" placeholder="排序"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">流程环境变量名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmEnvName" placeholder="流程环境变量名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">流程环境变量值</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmEnvValue" placeholder="流程环境变量值"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">流程参与人设置XX[R]:设置确实，xx[O]:设置机构、xx[P]：设置人员</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmPartyName" placeholder="流程参与人设置XX[R]:设置确实，xx[O]:设置机构、xx[P]：设置人员"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">流程参与人设置的值，逗号分割</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bpmNodeRule.bpmPartyValue" placeholder="流程参与人设置的值，逗号分割"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/bpm/bpmnoderule.js?_${date.systemTime}"></script>
</body>
</html>